package com.caocaog.market.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import java.util.Date;

/**
 * @Description
 * @Author Van.Planifolia
 * @Date 2024/1/9
 * @Version 1.0
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "MkGoodBrand", description = "商品商家")
public class GoodBrand {
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "ID")
    private String id;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "品牌名称")
    private String name;

    @ApiModelProperty(value = "品牌LOGO")
    private String logo;

    @ApiModelProperty(value = "品牌介绍")
    private String detail;

    @ApiModelProperty(value = "品牌账号")
    @NotEmpty(message = "品牌账号不得为空，后续进行登录")
    private String username;

    @NotEmpty(message = "品牌邮箱不得为空，后续进行消息通知")
    @ApiModelProperty(value = "企业邮箱")
    private String email;

    @NotEmpty(message = "品牌手机号不得为空，后续进行电话联系")
    @ApiModelProperty(value = "联系方式")
    private String phone;

    @ApiModelProperty(value = "用户Id")
    private String userId;
}
